
import 'dart:convert';

TeacherUpdateDto teacherUpdateDtoFromJson(String str) =>
    TeacherUpdateDto.fromJson(json.decode(str));

String teacherUpdateDtoToJson(TeacherUpdateDto data) =>
    json.encode(data.toJson());

class TeacherUpdateDto {
  TeacherUpdateDto({
    this.userName,
    this.firstName,
    this.lastName,
    this.classId,
  });

  String? userName;
  String? firstName;
  String? lastName;
  List<String>? classId;

  factory TeacherUpdateDto.fromJson(Map<String, dynamic> json) =>
      TeacherUpdateDto(
        firstName: json["firstName"],
        lastName: json["lastName"],
        classId: json["classId"] != null
            ? List<String>.from(json["classId"].map((x) => x))
            : null,
      );

  Map<String, dynamic> toJson() => {
        "firstName": firstName,
        "lastName": lastName,
        "classId":
            classId != null ? List<dynamic>.from(classId!.map((x) => x)) : null,
      };
}
